    <div class="nav-sub w1180">
    	<ul class="zoom">
    		<li><a href="/crm/order/index">订单管理</a></li>
    		<li><a class="on" href="/crm/order/return">退货管理</a></li>
    		<li><a href="/crm/order/cancel">取消订单管理</a></li>
    	</ul>
    </div>
	<div class="main-ct w1180">

		<div class="top-bar">
			<div class="custom-search">
				<label>订单号<input id="order_no" style="width:230px;" type="text" class="tp-txt" ></label>

				<a href="javascript:search();" class="btn-cs btn-search ml5">查 询</a>
			</div>
		</div>
		<div class="row" id="order_list_table">

		</div>
	</div>
<script type="text/javascript">
var page = 1;
var order_no = $("#order_no").val();


$(document).ready(function(){
	ajaxListTable();
});

function search(){
	page = 1;
	order_no = $("#order_no").val();
	ajaxListTable();
}


function ajaxListTable(){
	$.ajax({
        type: "post",
        url : "<?php echo $this->url('crm/order',
            array('action'=>'ajax-return-table'));?>",
        dataType:'html',
        data:  { 
            "order_no": order_no, 
			"page":page },
        cache: false,
        timeout:10000, 
        error: function(err){
          	 alert('请求超时，请重新操作');
             return false; 
         }, 
        success: function(html){
        	$("#order_list_table").html(html);
        }
    });
}
function agree(order_id){
	$.ajax({
        type: "post",
        url : "<?php echo $this->url('crm/order',
            array('action'=>'agree-return'));?>",
        dataType:'json',
        data:  { 
            "order_id": order_id, 
             },
        cache: false,
        timeout:10000, 
        error: function(){
        	alert('请求超时，请重新操作');
            return false; 
       }, 
      success: function(result){
          alert(result.reason);
          ajaxListTable();
      }
    });

}
</script>